<template>
  <div class="app-container">
    <el-table v-loading="loading" :data="userList">
      <el-table-column align="center" label="序号" type="index" width="50">
      </el-table-column>

      <el-table-column align="center" label="用户ID">
        <template slot-scope="scope">{{
          scope.row.userId ? scope.row.userId : "--"
        }}</template>
      </el-table-column>

      <el-table-column align="center" label="昵称">
        <template slot-scope="scope">{{
          scope.row.nickName ? scope.row.nickName : "--"
        }}</template>
      </el-table-column>

      <el-table-column align="center" label="手机号码">
        <template slot-scope="scope">{{
          scope.row.phonenumber ? scope.row.phonenumber : "--"
        }}</template>
      </el-table-column>

      <el-table-column align="center" label="注册时间" width="200">
        <template slot-scope="scope">{{
          scope.row.createTime ? scope.row.createTime : "--"
        }}</template>
      </el-table-column>

      <el-table-column align="center" label="发布攻略次数">
        <template slot-scope="scope">
          <el-link type="primary">{{ scope.row.gonglueCount }}次</el-link>
        </template>
      </el-table-column>

      <el-table-column align="center" label="发布评价次数">
        <template slot-scope="scope">
          <el-link type="primary">{{ scope.row.pinglunCount }}次</el-link>
        </template>
      </el-table-column>

      <el-table-column align="center" label="购票次数">
        <template slot-scope="scope">
          {{ scope.row.orderCount }}次
        </template>
      </el-table-column>

      <el-table-column align="center" label="入园次数">
        <template slot-scope="scope">
          <el-link type="primary">{{ scope.row.enterCount }}次</el-link>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "Table0",
  props: {
    loading: {
      type: Boolean,
      require: true,
      default: () => false,
    },
    userList: {
      type: Array,
      require: true,
      default: () => [],
    },
  },
  data() {
    return {};
  },
  created() { },
  methods: {},
};
</script>
